#ifndef _AUDIO_SET_H_
#define _AUDIO_SET_H_

#include <vector>
#include "audio.h"
#include "num/named_set.h"
namespace audio
{

struct	AudioSetFile
{
	AudioSetFile()
	{
		Handle = 0;
		SoundBias = 1;
	}
	std::string			Filename;
	AudioHandle			Handle;
	float				SoundBias;
	unsigned int		Size;
};

struct	AudioSubset
{
	std::string					Name;
	std::vector<AudioSetFile>	AudioFiles;
	AudioHandle					LastPlayed;
};

class AudioSet : public num::NamedSet<AudioSubset*>
{
public:

	AudioSet();
	~AudioSet();

	void		Load(const std::string& File);
	AudioHandle	PlayEffect(const std::string& Name);
};

}//  namespace audio

#endif // _AUDIO_SET_H_